package controller.seance
{
	import model.Seance;
	import model.proxy.SeanceProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	 
	public class ModifierSeanceCommand extends SimpleCommand 
	{		 
		/** 
		 * Constructor 
		 */ 
		public function ModifierSeanceCommand() 
		{ 
			super(); 
		} 
		
		/** 
		 * Initialize all commands/controllers of the application 
		 */
		override public function execute(note : INotification) : void 
		{  
			var seanceProxy:SeanceProxy = facade.retrieveProxy(SeanceProxy.NAME) as SeanceProxy; 
			seanceProxy.modifierSeance(note.getBody() as Seance); 
		} 
	}
}